import request from '@/utils/request'

// 查询方案库分类列表
export function listPlanclassification(query) {
  return request({
    url: '/decision/planclassification/list',
    method: 'get',
    params: query
  })
}

// 查询方案库分类详细
export function getPlanclassification(templateTypeId) {
  return request({
    url: '/decision/planclassification/' + templateTypeId,
    method: 'get'
  })
}

// 新增方案库分类
export function addPlanclassification(data) {
  return request({
    url: '/decision/planclassification',
    method: 'post',
    data: data
  })
}

// 修改方案库分类
export function updatePlanclassification(data) {
  return request({
    url: '/decision/planclassification',
    method: 'put',
    data: data
  })
}

// 删除方案库分类
export function delPlanclassification(templateTypeId) {
  return request({
    url: '/decision/planclassification/' + templateTypeId,
    method: 'delete'
  })
}
